home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5429 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: luss.is.ge.com!news
  2. From: "Westley L. Hespeth" <westley@geis.geis.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Slide Bars IN BC ++
  5. Date: Sun, 04 Feb 1996 12:15:40 -0500
  6. Organization: GE Information Services, Inc.
  7. Message-ID: <3114E9BC.3091@geis.geis.com>
  8. References: <31112E80.3D91@geis.geis.com>
  9. NNTP-Posting-Host: ras2.is.ge.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b6a (Win95; I)
  14.  
  15. westley wrote:
  16. > Hello,
  17. > (Borland 4.0)
  18. > I wish to use a Scroll Bar with my Pop-up Dialog Box.
  19. > The resource workshop creates one easy enough. The problem
  20. > is that the help and documetation leave you a little short
  21. > about how to communicate with it. There is doc on using
  22. > the TScrollbar class but nothing dealing with using
  23. > the Scrollbar created with the WS_VSROLLBAR attribute set
  24. > for a DLG.
  25. >                         Westley L. Hespeth
  26. >                         Westley@geis.geis.com
  27. >                         Speth Software
  28.  
  29.  
  30. In time, I have answered my own question. If a dialog has a scrol bar
  31. created with the scroll bar style bit it will send messages (ie 
  32. WM_VSCROLL & WM_HSCROLL). To controll it, you define the coresonding 
  33. responce table entries in a reponce table for the derived dialog.
  34. These mesage will coresspond to EV_WM_VSCROLL or EV_WM_HSCROLL. The 
  35. responce table macros will call void EvVScroll or EvHScroll. These
  36. functions can be overriden to provide the desired affect.
  37.  
  38.         Westley L. Hespeth
  39.         Speth Software.
  40.  
  41.